using namespace std;
#include<bits/stdc++.h>
int n,kuai[100010],num;
bool beat[100010],key;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    scanf("%d",&n);
    num=n;
    for(int i=1;i<=n;i++){
        scanf("%d",&kuai[i]);
    }
    sort(kuai+1,kuai+n+1);
    for(int i=n;i>=1;i--){
        if(key) break;
        for(int j=i-1;j>=1;j--){
            if(kuai[j]<kuai[i] && !beat[j]){
                beat[j]=1;
                break;
            }
            if(j==1) key=1;
        }
    }
    for(int i=1;i<=n;i++){
        num-=beat[i];
    }
    cout<<num;
    return 0;
}
